
import 'package:mr_camera/model/UserDetail.dart';

import 'mr_camera_platform_interface.dart';

class MrCamera {
  Future<String?> getPlatformVersion() {
    return MrCameraPlatform.instance.getPlatformVersion();
  }

  Future<void> startScanService() async{
    MrCameraPlatform.instance.startScanService();
  }

  Future<void> stopScanService() async{
    MrCameraPlatform.instance.stopScanService();
  }

  //获取抄表杆扫描服务是否运行
  Future<bool> isScanServiceRunning() async {
    return MrCameraPlatform.instance.isScanServiceRunning();
  }

  Future<String> startClientActivity(UserDetail userDetail, String snapshotFilePath) async {
    return MrCameraPlatform.instance.startClientActivity(userDetail,snapshotFilePath);
  }

  //获取抄表杆数量
  Future<int> getIpCamCount() async {
    return MrCameraPlatform.instance.getIpCamCount();
  }

  //重新查找摄像头
  Future<void> rediscoverCameras() async {
    MrCameraPlatform.instance.rediscoverCameras();
  }

}
